<template>
  <div>
        <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
            <p>下拉刷新</p>
        </van-pull-refresh>
  </div>
</template>

<script>

export default {
    name:'Uploader',
    data(){
        return{
            count: 0,
            isLoading: false
        }
    },
    methods: {
 onRefresh() {
      setTimeout(() => {
        this.$toast('刷新成功');
        console.log("11222")
        this.isLoading = false;
        this.count++;
      }, 1000);
    }
  }
}
</script>

<style>

</style>